package com.designpatterns.visitorpattern.impl;

import com.designpatterns.visitorpattern.ComputerPart;
import com.designpatterns.visitorpattern.ComputerPartVisitor;

public class Mouse implements ComputerPart
{

	// 接受访问者的访问
	@Override
	public void accept(ComputerPartVisitor computerPartVisitor)
	{
		// 访问者访问这个类：鼠标
		computerPartVisitor.visit(this);
	}
}
